<?php
/**
 * Created by PhpStorm.
 * User: hansliao
 * Date: 2018/2/7
 * Time: 11:29
 */
namespace Admin\Controller;

class LogsController extends AdminController{
    protected function _initialize(){
        parent::_initialize();
    }
    public function index($oid){
        $alist = array();
        $alist['Order/lemedo'] = '助理接手进件';
        $alist['Order/send_to_ms'] = '发送到面审';
        $alist['Order/detail'] = '浏览详情';
        $alist['Order/send_to_yc'] = '面审处理';
        $alist['Order/back_to_ms'] = '参意人&终审返回面审处理';
        $alist['Order/do_success'] = '合同准备';
        $alist['Order/do_fail'] = '审核失败';
        $alist['Order/download_exl'] = '下载表格';

        $rs = M('logs')->where("oid = $oid")->order('id asc')->select();
        $data = array();
        foreach($rs as $v){
            $tem = array();
            $tem['uid'] = M('member')->where("uid = {$v['uid']}")->getField('nickname');

            $tem['action'] = $alist[$v['action']];
            $tem['time'] = $v['time'];
            $tem['oid'] = $v['oid'];
            $data[] = $tem;
        }
        $this->assign('data',$data);
        $this->display();
        //print_r($rs);
    }


}